\documentclass{article}
\thispagestyle{empty}

\begin{document}

$$
  P =
\left[ \begin{array}{cccc}
    \frac{2~near}{right-left}    & 0 & \frac{right+left}{right-left} & 0\\
    0 & \frac{2~near}{top-bottom} & \frac{top+bottom}{top-bottom} & 0\\
    0 & 0 & -\frac{far+near}{far-near} & -\frac{2~near~far}{far-near} \\
    0 & 0 & -1 & 0
  \end{array} \right]
$$

\end{document}
